// P1271 write by cn_ryh